package com.nus.iss.ad.model;

import java.util.HashMap;

public class OrderDetail extends HashMap<String, String> {
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPoId() {
		return poId;
	}

	public void setPoId(int poId) {
		this.poId = poId;
	}

	public String getInventoryId() {
		return inventoryId;
	}

	public void setInventoryId(String inventoryId) {
		this.inventoryId = inventoryId;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int id;
	public int poId;
	public String inventoryId;
	public int quantity;
	
	public Inventory inventory;
	
	public Inventory getInventory() {
		return inventory;
	}

	public void setInventory(Inventory inventory) {
		this.inventory = inventory;
	}

	public OrderDetail(){
		
	}
	
	public OrderDetail(String id, String poId, String inventoryId, int quantity) {
		put("id", id);
		put("poId", poId);
		put("inventoryId", inventoryId);
		put("quantity", Integer.toString(quantity));
	}
}
